<?php

use think\facade\Route;

/********************{index控制器}********************/
//首页显示数据
Route::rule('tianqi', 'IndexApi/weather');
//获取下载地址
Route::rule('get_xiazai_url', 'IndexApi/get_app_download_url');
//首页显示数据
Route::rule('Index', 'IndexApi/index');
//首页商品数据
Route::rule('IndexGoods', 'IndexApi/index_goods');
//搜索记录
Route::rule('Search', 'IndexApi/search');
//搜索商品数据
Route::rule('SubSearch', 'IndexApi/sub_search');
//清空搜索记录
Route::rule('EmptySearch', 'IndexApi/empty_search');
//商品分类
Route::rule('GoodsCate', 'IndexApi/goods_cate');
//分类商品数据
Route::rule('CateGoods', 'IndexApi/cate_goods');
//登录
Route::rule('do_login', 'IndexApi/login');
//微信登录
Route::rule('weixin_dl', 'IndexApi/weixin_login');
//绑定、注册
Route::rule('do_bind_mobile', 'IndexApi/bind_mobile');
//注册
Route::rule('do_register', 'IndexApi/register');
//修改密码
Route::rule('do_forget', 'IndexApi/forget_pwd');
//公告列表
Route::rule('GetEssay', 'IndexApi/get_essay');
//公告详情
Route::rule('EssayDetail', 'IndexApi/essay_detail');
//协议详情
Route::rule('xieyi_xq', 'IndexApi/protocol_detail');
//认养协议详情
Route::rule('ry_xieyi_xq', 'IndexApi/ry_protocol_detail');
//Route::rule('weixin_login','IndexApi/get_login');
//Route::rule('weixin_mobile','IndexApi/wx_mobile');
//Route::rule('weixin_shouquan','IndexApi/wx_login');
/********************{goods控制器}********************/
//认养分类、商品列表
Route::rule('get_goods', 'GoodsApi/get_goods_list');
Route::rule('goods_xq', 'GoodsApi/goods_detail');
Route::rule('goods_fx', 'GoodsApi/goods_share');
Route::rule('get_ry_cates', 'GoodsApi/get_foster_goods_category');
Route::rule('get_ry_goods', 'GoodsApi/get_foster_goods');
Route::rule('ry_goods_xq', 'GoodsApi/foster_goods_detail');
Route::rule('get_dh_goods', 'GoodsApi/get_convert_goods');
Route::rule('dh_goods_xq', 'GoodsApi/convert_goods_detail');
Route::rule('get_jf_goods', 'GoodsApi/get_jifen_goods_list');
Route::rule('jf_goods_xq', 'GoodsApi/jifen_goods_detail');
Route::rule('get_jh_goods', 'GoodsApi/get_stock_goods');
Route::rule('jh_goods_xq', 'GoodsApi/stock_goods_detail');
//监控分类
Route::rule('get_monitor_class', 'GoodsApi/monitor_class');
//监控列表
Route::rule('get_monitor_list', 'GoodsApi/monitor_list');
//监控详情
Route::rule('get_monitor_detail', 'GoodsApi/monitor_detail');
/********************{common控制器}********************/
//获取验证码
Route::rule('GetCode', 'CommonApi/get_code');
//获取地区
Route::rule('get_areas', 'CommonApi/get_region');

Route::rule('tab-bar', 'CommonApi/tabBar');

Route::rule('config', 'CommonApi/config');
Route::rule('offical-config', 'CommonApi/officialConfig');
Route::rule('qr', 'CommonApi/qrcode');
/********************{user控制器}********************/
//获取用户信息
Route::rule('mobile-login', 'UserApi/loginByPhone');
Route::rule('UserInfo', 'UserApi/get_user_info');
//团队列表
Route::rule('get_td_list', 'UserApi/team_list');
//会员签到
Route::rule('user_qd', 'UserApi/user_sign');
//收藏列表
Route::rule('CollectList', 'UserApi/collect_list');
//添加取消收藏
Route::rule('EditCollect', 'UserApi/edit_collect');
//足迹列表
Route::rule('VisitList', 'UserApi/visit_list');
//删除足迹
Route::rule('DelVisit', 'UserApi/del_visit');
//地址列表
Route::rule('AddressList', 'UserApi/address_list');
//个人地址
Route::rule('Address', 'UserApi/address');
//保存地址
Route::rule('SaveAddress', 'UserApi/save_address');
//设置默认地址
Route::rule('SetDefault', 'UserApi/set_default');
//删除地址
Route::rule('DelAddress', 'UserApi/del_address');
//修改昵称
Route::rule('edit_nc', 'UserApi/edit_nickname');
//绑定银行卡
Route::rule('EditUserInfo', 'UserApi/set_user_info');
//绑定银行卡
Route::rule('Bank', 'UserApi/bank');
//修改登录密码
Route::rule('set_password', 'UserApi/password');
//修改交易密码
Route::rule('set_paypwd', 'UserApi/paypwd');
//绑定支付宝
Route::rule('set_zfb', 'UserApi/bind_zfb');
Route::rule('set_wechat', 'UserApi/bind_wechat');
//绑定支付宝、微信
Route::rule('bind_zfb_wx', 'UserApi/bind_third');
//获取推广二维码
Route::rule('Qrcode', 'UserApi/get_user_rcode');
//上传头像
Route::rule('UploadPic', 'UserApi/upload_pic');
//转赠
Route::rule('user_given', 'UserApi/given');
//转赠列表
Route::rule('zz_list', 'UserApi/given_list');
//钻石转化
//Route::rule('ZhuanHua','UserApi/change');
//转化列表
//Route::rule('zh_list','UserApi/change_list');
//提现
Route::rule('Withdrawals', 'UserApi/withdrawals');
//提现记录
Route::rule('get_tx_list', 'UserApi/with_list');
//充值
Route::rule('Recharge', 'UserApi/recharge');
//充值记录
Route::rule('cz_list', 'UserApi/RechargeList');
//充值取消或支付
Route::rule('do_cz_list', 'UserApi/DoRechargeList');
//资金明细
Route::rule('get_points_list', 'UserApi/get_points');
//钱包列表
Route::rule('get_my_wallet_list', 'UserApi/get_user_qianbao_list');
Route::rule('get_my_wallet_dlq_list', 'UserApi/get_user_qianbao_dlq_list');
Route::rule('get_my_wallet_log', 'UserApi/get_user_qianbao_log');
//钱包出售、转让
Route::rule('my_wallet_sell', 'UserApi/user_wallet_sell');
Route::rule('my_wallet_given', 'UserApi/user_wallet_given');
Route::rule('get_my_wallet_given_log', 'UserApi/get_user_wallet_given_log');
//交易大厅
Route::rule('get_jy_list', 'UserApi/user_wallet_deal_list');
//交易购买
Route::rule('jy_buy', 'UserApi/user_wallet_buy');
//会员交易列表
Route::rule('get_user_jy_list', 'UserApi/get_user_wallet_deal_list');
//会员交易详情
Route::rule('user_jy_xq', 'UserApi/user_wallet_deal_detail');
//会员交易取消
Route::rule('user_jy_qx', 'UserApi/user_wallet_deal_cancel');
//会员某票列表
Route::rule('get_piao_list', 'UserApi/get_wallet_list');
//会员团队分红领取记录
Route::rule('td_fh_lq_list', 'UserApi/get_td_fh_lq_list');
//会员团队分红领取
Route::rule('td_fh_lq', 'UserApi/td_fh_lq');
//会员团队分红奖励记录
Route::rule('td_fh_log_list', 'UserApi/get_td_fh_log_list');
/********************{cart控制器}********************/
//添加购物车
//Route::rule('AddCart','CartApi/add_cart');
//购物车列表
//Route::rule('CartList','CartApi/cart_list');
//删除购物车
//Route::rule('DelCart','CartApi/del_cart');
//购物车商品移至收藏夹
//Route::rule('MoveCart','CartApi/move_to_collect');
//修改商品数量
//Route::rule('EditNum','CartApi/edit_num');
//修改商品选中状态
//Route::rule('EditSel','CartApi/edit_sel');
//结算
//Route::rule('SettlementCart','CatApi/settlement_cart');
/********************{order控制器}********************/
//添加订单
Route::rule('AddOrder', 'OrderApi/add_order');
//订单列表
Route::rule('OrderList', 'OrderApi/order_list');
//订单详情
Route::rule('OrderDetail', 'OrderApi/order_detail');
//支付订单
Route::rule('OrderPay', 'OrderApi/order_pay');
//取消订单
Route::rule('CancelOrder', 'OrderApi/cancel_order');
//物流信息
Route::rule('Logistics', 'OrderApi/logistics');
//确认收货
Route::rule('OrderConfirm', 'OrderApi/order_confirm');
//创建认养订单
Route::rule('add_foster_order', 'OrderApi/foster_confirm_order');
//取消认养订单
Route::rule('ry_dd_cancel', 'OrderApi/cancel_foster_order');
//认养订单列表
Route::rule('get_ry_dd_list', 'OrderApi/foster_order_list');
//认养订单详情
Route::rule('ry_dd_xq', 'OrderApi/foster_order_detail');
//认养订单喂食/领取收益
Route::rule('ry_dd_feed', 'OrderApi/foster_order_feed');
//创建兑换订单
Route::rule('add_dh_order', 'OrderApi/convert_confirm_order');
//兑换订单列表
Route::rule('get_dh_dd_list', 'OrderApi/convert_order_list');
//兑换订单详情
Route::rule('dh_dd_xq', 'OrderApi/convert_order_detail');
//兑换订单核销
Route::rule('dh_dd_hx', 'OrderApi/convert_order_verification');
//兑换订单收货
Route::rule('dh_dd_confirm', 'OrderApi/convert_order_confirm');
//创建积分订单
Route::rule('add_jifen_order', 'OrderApi/jifen_confirm_order');
//积分订单列表
Route::rule('get_jf_dd_list', 'OrderApi/jifen_order_list');
//积分订单详情
Route::rule('jf_dd_xq', 'OrderApi/jifen_order_detail');
//兑换订单收货
Route::rule('jf_dd_confirm', 'OrderApi/jifen_order_confirm');
//创建进货订单
Route::rule('add_jh_order', 'OrderApi/stock_confirm_order');
//进货订单列表
Route::rule('get_jh_dd_list', 'OrderApi/stock_order_list');
//进货订单详情
Route::rule('jh_dd_xq', 'OrderApi/stock_order_detail');
//进货订单收货
Route::rule('jh_dd_confirm', 'OrderApi/stock_order_confirm');
/********************{WxPay控制器}********************/
//Route::rule('pay_notify_xcx','WxPayXcx/notify_url');
Route::rule('pay_notify_wx', 'WxPay/notify_url');
/********************{Alipay控制器}********************/
Route::rule('pay_notify_zfb', 'Alipay/notify_url');
/********************{payment控制器}********************/
//Route::rule('zhifu/:pay_code/[:order_sn]','Payment/get_code');
//Route::rule('zhifu_return','Payment/return_url');
//Route::rule('zhifu_notify/[:pay_code]','Payment/notify_url');
//Route::rule('zhifu_weixin','Payment/weixin_return');
/********************{store控制器}********************/
Route::rule('store_sq', 'StoreApi/store_apply');
Route::rule('store_xq', 'StoreApi/store_detail');
Route::rule('ztd_sq', 'StoreApi/pick_apply');
Route::rule('ztd_list', 'StoreApi/get_pick_list');
Route::rule('ztd_xq', 'StoreApi/pick_detail');

Route::group('pay-callback', function () {
    Route::post('/mini-app', 'PayNotify/miniApp');
    Route::post('/official', 'PayNotify/official');
});
